<div data-role="page" data-external-page="false">

  <div data-role="header" data-position="fixed" data-tap-toggle="false">
    <h1>Micro-Tutorials</h1>
  </div>

  <div data-role="content">
    <form method="post" action="<%= url_for(:action => :post_login) %>">
      <div >
<% if @msg %>
          <div class="error-message"><%= @msg %></div>
      <% end %>

        <label for="username">Tên đăng nhập</label>
        <input type="text" name="username" id="username" placeholder="Tên đăng nhập" />
        <label for="password">Mật khẩu</label>
        <input type="password" name="password" id="password" placeholder="Mật khẩu"/>
        <input type="submit" value="Đăng nhập" id="button-login" data-theme="b" />
        <hr/>
        <a href="/app/Session/register" data-role="button">Đăng ký</a>
      </div>
    </form>

  </div>

</div>
